<!--
 * @file 富文本编辑器
 * @author its-wild(https://gitee.com/its-wild)
 * @date 2021/07/30
-->
<template>
  <div>
    <its-editor v-model="textHtml" @input="editorInput"></its-editor>
    <a-button @click="getText">获取内容</a-button>
  </div>
</template>

<script>
import { defineComponent } from 'vue'
import ItsEditor from '@/components/itsEditor/Index.vue'
export default defineComponent({
  name: 'Editor',
  components: {
    ItsEditor,
  },
  data() {
    return {
      textHtml: '',
    }
  },
  methods: {
    getText() {
      console.log(this.textHtml)
    },
    editorInput(val) {
      this.textHtml = val
    },
  },
})
</script>

<style scoped lang="less">
</style>
